<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Grid</title>
		<style>
			.grid{
				display: grid;
				min-height: 100vh;
				width: 100vw;
				margin: auto;
				text-align: center;
				justify-content: center;
				align-content: center;
				grid-gap: 10px;
				grid-template-columns: repeat(4,288px);
				grid-template-rows: 150px 150px;
			}
			.box{
				width: 100%;
				height: 100%;
				background-color: pink;
				margin: 5px;
				padding: 5px;
			}
			.one{
				background-attachment: fixed;
				background-size: cover;
				background-image: url(http://pic1.win4000.com/wallpaper/2020-11-26/5fbf575abff08.jpg);
			}
			.two{
				background-attachment: fixed;
				background-size: cover;
				background-image: url(http://pic1.win4000.com/wallpaper/2020-11-26/5fbf575bc529e.jpg);
			}
		</style>
	</head>
	<body>
		<div class="grid">
			<div class="box one">
				1
			</div>
			<div class="box one">
				2
			</div>
			<div class="box one">
				3
			</div>
			<div class="box two">
				4
			</div>
			<div class="box one">
				5
			</div>
			<div class="box one">
				6
			</div>
			<div class="box two">
				7
			</div>
			<div class="box two">
				8
			</div>
			
		</div>
	</body>
</html>
